<?php
require_once("vcl/vcl.inc.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class logout extends Page
{
       function logoutCreate($sender, $params)
       {
         unset($_SESSION['company_id']);
         unset($_SESSION['company_name']);
         unset($_SESSION['username']);

         redirect('login.php');
       }

}

global $application;

global $logout;

//Creates the form
$logout=new logout($application);

//Read from resource file
$logout->loadResource(__FILE__);

//Shows the form
$logout->show();

?>